package com.shop.entity;

import java.util.Objects;

public class UserOrderList {
    private int o_id;
    private int od_id;
    private int gd_id;
    private String img_path;
    private String threeName;
    private String fourName;
    private int gd_price;
    private int gd_buyNum;
    private int od_status;
    private String bank1;
    private String dbank2;

    public UserOrderList() {
    }

    public UserOrderList(int od_id, int gd_id, String img_path, String threeName, int od_status) {
        this.od_id = od_id;
        this.gd_id = gd_id;
        this.img_path = img_path;
        this.threeName = threeName;
        this.od_status = od_status;
    }

    public UserOrderList(int o_id, int od_id, int gd_id, String img_path, String threeName, String fourName, int gd_price, int gd_buyNum, int od_status, String bank1, String dbank2) {
        this.o_id = o_id;
        this.od_id = od_id;
        this.gd_id = gd_id;
        this.img_path = img_path;
        this.threeName = threeName;
        this.fourName = fourName;
        this.gd_price = gd_price;
        this.gd_buyNum = gd_buyNum;
        this.od_status = od_status;
        this.bank1 = bank1;
        this.dbank2 = dbank2;
    }

    public int getO_id() {
        return o_id;
    }

    public void setO_id(int o_id) {
        this.o_id = o_id;
    }

    public String getFourName() {
        return fourName;
    }

    public void setFourName(String fourName) {
        this.fourName = fourName;
    }

    public int getGd_price() {
        return gd_price;
    }

    public void setGd_price(int gd_price) {
        this.gd_price = gd_price;
    }

    public int getGd_buyNum() {
        return gd_buyNum;
    }

    public void setGd_buyNum(int gd_buyNum) {
        this.gd_buyNum = gd_buyNum;
    }

    public String getBank1() {
        return bank1;
    }

    public void setBank1(String bank1) {
        this.bank1 = bank1;
    }

    public String getDbank2() {
        return dbank2;
    }

    public void setDbank2(String dbank2) {
        this.dbank2 = dbank2;
    }

    public int getOd_id() {
        return od_id;
    }

    public void setOd_id(int od_id) {
        this.od_id = od_id;
    }

    public int getGd_id() {
        return gd_id;
    }

    public void setGd_id(int gd_id) {
        this.gd_id = gd_id;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public String getThreeName() {
        return threeName;
    }

    public void setThreeName(String threeName) {
        this.threeName = threeName;
    }

    public int getOd_status() {
        return od_status;
    }

    public void setOd_status(int od_status) {
        this.od_status = od_status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserOrderList that = (UserOrderList) o;
        return od_id == that.od_id &&
                gd_id == that.gd_id &&
                od_status == that.od_status &&
                Objects.equals(img_path, that.img_path) &&
                Objects.equals(threeName, that.threeName) &&
                Objects.equals(bank1, that.bank1) &&
                Objects.equals(dbank2, that.dbank2);
    }

    @Override
    public int hashCode() {
        return Objects.hash(od_id, gd_id, img_path, threeName, od_status, bank1, dbank2);
    }

    @Override
    public String toString() {
        return "UserOrderList{" +
                "o_id=" + o_id +
                ", od_id=" + od_id +
                ", gd_id=" + gd_id +
                ", img_path='" + img_path + '\'' +
                ", threeName='" + threeName + '\'' +
                ", fourName='" + fourName + '\'' +
                ", gd_price=" + gd_price +
                ", gd_buyNum=" + gd_buyNum +
                ", od_status=" + od_status +
                ", bank1='" + bank1 + '\'' +
                ", dbank2='" + dbank2 + '\'' +
                '}';
    }
}
